<div id="page-wrapper">
        <!-- /.row -->
    <div class="row">
        <div class="col-sm-12">
            <div class="panel panel-default">
                <div class="panel-heading"><span class="judul-page">Tambah Master Siswa Pada</span></div>
                <div class="panel-body">
					<?php 
						echo form_open_multipart('mr_siswa/add_exe', array('class' => 'form-horizontal', 'role' => 'form')); 
					?>
            <?php
              if($tingkat == '22'){
                ?>
      						<div class="form-group">
      							<label class="col-sm-2 control-label">NIS</label>
      							<div class="col-sm-4">
      								<!-- <input type="text" name="id" class="form-control input-sm" value="<?php echo "$nva"; ?>"> -->
      								<input type="text" name="nva" value="<?php echo "$nva"; ?>" class="form-control input-sm">
      							</div>
      						</div>
                <?php
              }else{
                ?>
                  <div class="form-group">
                    <label class="col-sm-2 control-label">NIS</label>
                    <div class="col-sm-4">
                      <!-- <input type="text" name="id" class="form-control input-sm" value="<?php echo "$nva"; ?>" disabled> -->
                      <input type="text" name="nva" value="<?php echo "$nva"; ?>" class="form-control input-sm">
                    </div>
                  </div>
                <?php
              }
            ?>
            <div class="form-group">
              <label class="col-sm-2 control-label">NVA</label>
              <div class="col-sm-4">
                <input type="text" name="nis" value="<?php echo "$nis"; ?>" class="form-control input-sm">
              </div>
            </div>

						<div class="form-group">
							<label class="col-sm-2 control-label">NIK</label>
							<div class="col-sm-4">
								<input type="text" name="nik" class="form-control input-sm" placeholder="NIK">
							</div>
						</div>
					  
						<div class="form-group">
							<label class="col-sm-2 control-label">Nama Lengkap</label>
							<div class="col-sm-7">
								<input type="text" name="nm_lengkap" class="form-control input-sm" placeholder="Nama Lengkap">
							</div>
						</div>
					  
					  <div class="form-group">
                        <label class="col-sm-2 control-label">Jenis Kelamin</label>
                        <div class="col-sm-9">
                            <label class="radio-inline">
								<input type="radio" name="jk" value="L" checked>
								Laki-laki
							</label>

							<label class="radio-inline">
								<input type="radio" name="jk" value="P">
								Perempuan
							</label>
                        </div>
                      </div>
					  
					  <div class="form-group">
							<label class="col-sm-2 control-label">Nama Panggilan</label>
							<div class="col-sm-7">
								<input type="text" name="nm_panggilan" class="form-control input-sm" placeholder="Nama Panggilan">
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 control-label">TTL</label>
							<div class="col-sm-4">
								<input type="text" name="tmp_lahir" class="form-control input-sm" placeholder="Tempat Lahir">
							</div>
							<div class="col-sm-2">
								<input type="text" name="tgl_lahir" class="form-control input-sm tanggal" placeholder="Tanggal Lahir">
							</div>
						</div>
					  
						<div class="form-group">
							<label class="col-sm-2 control-label">Alamat</label>
							<div class="col-sm-7">
								<textarea name="alamat" class="form-control input-sm" rows="3" placeholder="Alamat Lengkap"></textarea>
							</div>
						</div>
					  
					    <div class="form-group">
							<label class="col-sm-2 control-label">No. Tlp</label>
							<div class="col-sm-4">
							  <input type="text" name="tlp" class="form-control input-sm" placeholder="No. Tlp">
							</div>
						</div>
						
						<div class="form-group">
							<label class="col-sm-2 control-label">Email</label>
							<div class="col-sm-4">
							  <input type="text" name="email" class="form-control input-sm" placeholder="Email">
							</div>
						</div>
						
						<div class="form-group">
							<label class="col-sm-2 control-label">Jarak</label>
							<div class="col-sm-4">
							  <input type="text" name="jarak" class="form-control input-sm" placeholder="Jarak">
							</div>
						</div>
						
						<div class="form-group">
							<label class="col-sm-2 control-label">Transportasi</label>
							<div class="col-sm-4">
							  <input type="text" name="trans" class="form-control input-sm" placeholder="Transportasi">
							</div>
						</div>
						
						<div class="form-group">
							<label class="col-sm-2 control-label">Asal Sekolah</label>
							<div class="col-sm-4">
							  <input type="text" name="asal_sekolah" class="form-control input-sm" placeholder="Asal Sekolah">
							</div>
						</div>
						
						<div class="form-group">
							<label class="col-sm-2 control-label">Alamat Sekolah</label>
							<div class="col-sm-7">
								<textarea name="almt_sekolah" class="form-control input-sm" rows="3" placeholder="Alamat Lengkap Sekolah"></textarea>
							</div>
						</div>
						
                      <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-9">
                          <button type="submit" onClick="validate()" class="btn btn-primary btn-sm">Simpan</button>
                          <button type="reset" class="btn btn-danger btn-sm">Reset</button>
                        </div>
                      </div>
                    <?php 
						echo form_close();
					?>
                </div>
            </div>
        </div>
    </div>
    <!-- /.row -->
</div>
<!-- /#page-wrapper -->

<script>
  function validate() {
    $("form").validate({
      rules: {
        nva: {
          required: true
        },
        nm_lengkap: {
          required: true
        },
        nm_panggilan: {
          required: true
        },
      },
      messages: {
        nva: {
          required: "NVA harus diisi."
        },
        nm_lengkap: {
          required: "Nama lengkap harus diisi."
        },
        nm_panggilan: {
          required: "Nama panggilan harus diisi."
        },
      }
    });

    var topicInputs = topics.find("input").attr("disabled", !inital);
  };
</script>